<template>
  <div>
    <el-tooltip
        class="item"
        effect="dark"
        content="打赏作者"
        placement="top-start"
    >
      <el-button
          type="success"
          icon="el-icon-coin"
          circle
          @click="openTongzhi"
      ></el-button>
    </el-tooltip>
  </div>
</template>

<script>
export default {
  name: "DashangOrEdit",
  methods: {
    openTongzhi() {
      const h = this.$createElement;
      this.$notify({
        title: "关于打赏",
        message: h(
            "i",
            {style: "color: teal"},
            "谢谢你对我们网站内容的认可，打赏二维码在pdf的尾部，可以请作者喝杯咖啡哦~"
        ),
      });
    },
  },
};
</script>

<style scoped>
</style>